package com.example.mapper;

import com.example.entity.Inline;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface InlineMapper {

    @Select("select * from ksd_inline limit #{page},2")
    List<Inline> findUsers(@Param("page")Integer page);

    @Select("select count(1) from ksd_inline")
    int countUser();
}
